package com.example.graduation.entity;

import java.math.BigDecimal;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Coupon对象", description = "")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "商店id")
    private Integer shopId;

    @ApiModelProperty(value = "0系统优惠券，全网通用 1商家优惠券，只在本店可以使用")
    private Integer type;

    @ApiModelProperty(value = "当他为商家优惠券，他的克换不需要积分，这个由商家向平台申请")
    private BigDecimal point;

    @ApiModelProperty(value = "有效时间")
    private Long effectiveTime;

    @ApiModelProperty(value = "优惠额度 68,3 也就是满68-3")
    private String content;


}
